<include file="Public/header" />


<div class="center_index">
    <span>上大计算机学院微信平台</span><br/>

</div>
<table class="table" id="list">

</table>

<script>
$(function(){
  chooseType(0);
});

function chooseType(type){
  var client = new HproseHttpClient('http://ces.webchat.com/hprose.php/Article', ['getArticleList']);
  client.getArticleList(type,function(result){
      result = JSON.parse(result);
      console.log(result);
      if(result.success == 1){
        var p = '';
        $.each(result.result,function(i,item){
          p +='<tr>';
          p +='<td><span style="cursor:pointer" onclick="chooseType('+item.type+')">['+item.typename+'</span>]'+item.title+'</td>';
          p +='<td class="text-right">'+(item.createtime).substring(0,10)+'</td>';
          p +='</tr>';
        })
        $("#list").html(p);
      }
  })
}
</script>

<include file="Public/footer_article_list" />
